package com.example.demo05.service;

import com.example.demo05.mapper.PublisherDaoMapper;
import com.example.demo05.pojo.Publisher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PublisherService {
    @Autowired
    private PublisherDaoMapper publisherDaoMapper;

    public List<Publisher> getAllPublisher()
    {
        return publisherDaoMapper.getAllPublisher();
    }
    public List<Publisher> getPublisherAndAllBooks(Integer pid)
    {
        return publisherDaoMapper.getPublisherAndAllBooks(pid);
    }
}
